<template>
    <div>
        <li>
            <!-- 将对象填入相应的标签 -->
            <img :src="element.pic" alt="" />
            <p>{{ element.name }}</p>
            <p>城市：{{ element.city }}</p>
            <p>地址：{{ element.address }}</p>
            <p>价格：{{ element.price }}</p>
            <p>出演时间：{{ element.showTime }}</p>
        </li>
    </div>
</template>
<script>
export default {
    name: "Single",
    data() {
        return {
            element: this.el,
        };
    },
    // 接收传递过来的对象
    props: ["el"],
};
</script>

<style scoped>
li {
    list-style: none;
}
li {
    width: 280px;
    height: 510px;
    border: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

li > img {
    width: 280px;
    height: 320px;
    display: block;
}

li > p {
    padding-left: 10px;
    padding-top: 10px;
}
</style>
